package com.example.huawei.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName like_record
 */
@ApiModel("点赞实体类")
@TableName(value = "like_record")
@Data
public class LikeRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId
    private String id;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**
     * 帖子id
     */
    @ApiModelProperty(value = "帖子id")
    private String releaseId;
    /**
     * 点赞标记 1是0否
     */
    @ApiModelProperty(value = "点赞标记 1是0否")
    private Integer likeFlag;
    /**
     * 点赞时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "点赞时间")
    private Date createTime;
    /**
     * 点赞类型 1帖子 2评论 默认为1
     */
    @ApiModelProperty(value = "点赞类型 1帖子 2评论 默认为1")
    private Integer likeType;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
